import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
		{
			path: '/home',
			name: 'Index',
			component: () => import('@/views')
		},
		{
			path: '/login',
			name: 'Login',
			component: () => import('@/views/login')
		},
		{
			path: '/business/add',
			name: 'BusinessAdd',
			component: () => import('@/views/business/add')
		},
		{
			path: '/business/index',
			name: 'BusinessIndex',
			component: () => import('@/views/business')
		},
		{
			path: '/admin/index',
			name: 'AdminIndex',
			component: () => import('@/views/admin')
		}
	],
})

export default router
